package com.bw.liuyushan.zhuangao4_weektest2.MVP.Fragment;

import androidx.appcompat.widget.SearchView;

import com.bw.liuyushan.mvp_lib.View.BaseFragment;
import com.bw.liuyushan.zhuangao4_weektest2.MVP.Contrack.IContrackTest;
import com.bw.liuyushan.zhuangao4_weektest2.MVP.Model.BaseModelTest;
import com.bw.liuyushan.zhuangao4_weektest2.MVP.Presenter.BasePresenterTest;
import com.bw.liuyushan.zhuangao4_weektest2.R;

/**
 * ZhuanGao4_WeekTest2
 * file name is : Fragment_Main1
 * created by Ender on 2021/8/23 8:31.
 * author : 刘雨杉
 * Describe(作用):
 */
public class Fragment_Main2 extends BaseFragment<BasePresenterTest> implements IContrackTest.C_ViewTest {
    private SearchView sear;

    @Override
    public int bindLayout() {
        return R.layout.fragment_main2;
    }

    @Override
    public void initView() {
        //防止内存泄露
        ip = new BasePresenterTest(new BaseModelTest(), this);


        sear = (SearchView) findViewById(R.id.sear);
    }

    @Override
    public void initDate() {
        sear.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
            @Override
            public boolean onQueryTextSubmit(String query) {
                return false;
            }

            @Override
            public boolean onQueryTextChange(String newText) {

                return false;
            }
        });

    }
}
